package com.yunban.project.template.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-11-06
 * @version: 1.0
 */
@Data
@Schema(description = "前端模板请求参数")
public class TemplateReq implements Serializable {
    @Schema(description = "模板类型ID")
    @NotNull(message = "模板类型ID不能为空")
    private Long blockTypeId;
    @Schema(description = "模板名称")
    @NotBlank(message = "模板名称不能为空")
    private String name;
    @Schema(description = "模板Code")
    private String code;
    @Schema(description = "模板HTML内容")
    @NotBlank(message = "模板HTML内容不能为空")
    private String html;
    @Schema(description = "内部模板HTML内容")
    private String innerHtml;
    @Schema(description = "示意图")
    @NotBlank(message = "示意图不能为空")
    private String diagram;
    @Schema(description = "模板样式ID_List")
    private List<Long> styleIds;
}
